package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.to.SocialUser;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.UserLoginVO;
import com.atguigu.gulimall.auth.vo.UserRegistVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wzb
 * @version V1.0
 * @Package com.atguigu.gulimall.auth.feign
 * @date 2022-08-12 14:09
 * @Copyright ©
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {


    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVO vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVO vo);

    @PostMapping("/member/member/oauth2/login")
    R oauthLogin(SocialUser socialUser);
}
